package br.ufc.great.dtxtester;

import java.util.Vector;

import br.ufc.great.client.DTXSite;
import br.ufc.great.client.DTXTransaction;

public class DTXClient {
	
	private String name;
	private DTXSite site;
	private Vector<DTXTransaction> transactions;
	private double executionTime;
	private long transactionsInterval;
	private int numberDeadlocks = 0;
	
	public double getExecutionTime() {
		return executionTime;
	}

	public void setExecutionTime(double executionTime) {
		this.executionTime = executionTime;
	}

	public DTXClient(String name, DTXSite site, Vector<DTXTransaction> transactions, long transactionsInterval) {
		this.name = name;
		this.site = site;
		this.transactions = transactions;
		this.transactionsInterval = transactionsInterval;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public DTXSite getSite() {
		return site;
	}

	public void setSite(DTXSite site) {
		this.site = site;
	}

	public Vector<DTXTransaction> getTransactions() {
		return transactions;
	}

	public void setTransactions(Vector<DTXTransaction> transactions) {
		this.transactions = transactions;
	}

	public long getTransactionsInterval() {
		return transactionsInterval;
	}

	public void setTransactionsInterval(long transactionsInterval) {
		this.transactionsInterval = transactionsInterval;
	}

	public int getNumberDeadlocks() {
		return numberDeadlocks;
	}

	public void setNumberDeadlocks(int numberDeadlocks) {
		this.numberDeadlocks = numberDeadlocks;
	}
	
}
